﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200074F RID: 1871
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetMissionEventDataScRsp : IMessage<GetMissionEventDataScRsp>, IMessage, IEquatable<GetMissionEventDataScRsp>, IDeepCloneable<GetMissionEventDataScRsp>, IBufferMessage
	{
		// Token: 0x170017EA RID: 6122
		// (get) Token: 0x0600541A RID: 21530 RVA: 0x000E382B File Offset: 0x000E1A2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetMissionEventDataScRsp> Parser
		{
			get
			{
				return GetMissionEventDataScRsp._parser;
			}
		}

		// Token: 0x170017EB RID: 6123
		// (get) Token: 0x0600541B RID: 21531 RVA: 0x000E3832 File Offset: 0x000E1A32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetMissionEventDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170017EC RID: 6124
		// (get) Token: 0x0600541C RID: 21532 RVA: 0x000E3844 File Offset: 0x000E1A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetMissionEventDataScRsp.Descriptor;
			}
		}

		// Token: 0x0600541D RID: 21533 RVA: 0x000E384B File Offset: 0x000E1A4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMissionEventDataScRsp()
		{
		}

		// Token: 0x0600541E RID: 21534 RVA: 0x000E3860 File Offset: 0x000E1A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMissionEventDataScRsp(GetMissionEventDataScRsp other) : this()
		{
			this.challengeEventId_ = other.challengeEventId_;
			this.missionEventList_ = other.missionEventList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600541F RID: 21535 RVA: 0x000E38AD File Offset: 0x000E1AAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMissionEventDataScRsp Clone()
		{
			return new GetMissionEventDataScRsp(this);
		}

		// Token: 0x170017ED RID: 6125
		// (get) Token: 0x06005420 RID: 21536 RVA: 0x000E38B5 File Offset: 0x000E1AB5
		// (set) Token: 0x06005421 RID: 21537 RVA: 0x000E38BD File Offset: 0x000E1ABD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeEventId
		{
			get
			{
				return this.challengeEventId_;
			}
			set
			{
				this.challengeEventId_ = value;
			}
		}

		// Token: 0x170017EE RID: 6126
		// (get) Token: 0x06005422 RID: 21538 RVA: 0x000E38C6 File Offset: 0x000E1AC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Mission> MissionEventList
		{
			get
			{
				return this.missionEventList_;
			}
		}

		// Token: 0x170017EF RID: 6127
		// (get) Token: 0x06005423 RID: 21539 RVA: 0x000E38CE File Offset: 0x000E1ACE
		// (set) Token: 0x06005424 RID: 21540 RVA: 0x000E38D6 File Offset: 0x000E1AD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005425 RID: 21541 RVA: 0x000E38DF File Offset: 0x000E1ADF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetMissionEventDataScRsp);
		}

		// Token: 0x06005426 RID: 21542 RVA: 0x000E38F0 File Offset: 0x000E1AF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetMissionEventDataScRsp other)
		{
			return other != null && (other == this || (this.ChallengeEventId == other.ChallengeEventId && this.missionEventList_.Equals(other.missionEventList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005427 RID: 21543 RVA: 0x000E3950 File Offset: 0x000E1B50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ChallengeEventId != 0U)
			{
				num ^= this.ChallengeEventId.GetHashCode();
			}
			num ^= this.missionEventList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005428 RID: 21544 RVA: 0x000E39B6 File Offset: 0x000E1BB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005429 RID: 21545 RVA: 0x000E39BE File Offset: 0x000E1BBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600542A RID: 21546 RVA: 0x000E39C8 File Offset: 0x000E1BC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ChallengeEventId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ChallengeEventId);
			}
			this.missionEventList_.WriteTo(ref output, GetMissionEventDataScRsp._repeated_missionEventList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600542B RID: 21547 RVA: 0x000E3A34 File Offset: 0x000E1C34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ChallengeEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeEventId);
			}
			num += this.missionEventList_.CalculateSize(GetMissionEventDataScRsp._repeated_missionEventList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600542C RID: 21548 RVA: 0x000E3AA0 File Offset: 0x000E1CA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetMissionEventDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ChallengeEventId != 0U)
			{
				this.ChallengeEventId = other.ChallengeEventId;
			}
			this.missionEventList_.Add(other.missionEventList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600542D RID: 21549 RVA: 0x000E3B01 File Offset: 0x000E1D01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600542E RID: 21550 RVA: 0x000E3B0C File Offset: 0x000E1D0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 24U)
					{
						if (num != 90U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.missionEventList_.AddEntriesFrom(ref input, GetMissionEventDataScRsp._repeated_missionEventList_codec);
						}
					}
					else
					{
						this.ChallengeEventId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040020E0 RID: 8416
		private static readonly MessageParser<GetMissionEventDataScRsp> _parser = new MessageParser<GetMissionEventDataScRsp>(() => new GetMissionEventDataScRsp());

		// Token: 0x040020E1 RID: 8417
		private UnknownFieldSet _unknownFields;

		// Token: 0x040020E2 RID: 8418
		public const int ChallengeEventIdFieldNumber = 3;

		// Token: 0x040020E3 RID: 8419
		private uint challengeEventId_;

		// Token: 0x040020E4 RID: 8420
		public const int MissionEventListFieldNumber = 11;

		// Token: 0x040020E5 RID: 8421
		private static readonly FieldCodec<Mission> _repeated_missionEventList_codec = FieldCodec.ForMessage<Mission>(90U, Mission.Parser);

		// Token: 0x040020E6 RID: 8422
		private readonly RepeatedField<Mission> missionEventList_ = new RepeatedField<Mission>();

		// Token: 0x040020E7 RID: 8423
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040020E8 RID: 8424
		private uint retcode_;
	}
}
